package com.xkh.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author xkh
 * 2020/9/15
 */
@Data
@TableName("user")
public class UserBean {
    @TableId(value = "user_id", type =  IdType.ASSIGN_ID)
    private Long userId;
    private String userName;
    private Integer age;
    private String email;
    /**
     * 逻辑删除默认查询为0的
     */
    @TableLogic
    private Integer deleted;
}
